package com.yang.controller;

import com.yang.mapper.NewMeta;
import com.yang.mapper.meta;

import com.yang.pojo.Defect;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.util.List;

@RestController
public class metaController {

    @Autowired
    private NewMeta newMeta;

    @Autowired
    private meta meta;

    @RequestMapping("/hello")
    public String test() throws IOException{
        List<Defect> list = meta.testMatchAll();
//        List<Map<String, Object>> maps = newMeta.searchAll();
//        System.out.println(maps.size()+"maps");
        System.out.println(list.size()+"list");
        return "SUCCESS!!!";
    }
}
